tests/resource: set grant version for created domains
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 17 Nov 2021 07:13:02 +0000 (08:13 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 17 Nov 2021 07:13:02 +0000 (08:13 +0100)
commit810fbc03ff51275d9603b9896c9085d645733ed8
tree97f066577efb737d3f516e2d51dacce9901e719a
parent2abeaf319c59d3446e03264e25987200eb4217ca
tests/resource: set grant version for created domains

Set the grant table version for the created domains to use version 1,
as that's the used by the test cases. Without setting the grant
version the domains for the tests cannot be created.

Fixes: 7379f9e10a ('gnttab: allow setting max version per-domain')
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
tools/tests/resource/test-resource.c